package next.fire.spinus.logx.provider.aliyun.protobuf;

/**
 * Utils for common coding.
 *
 * @author xiaoming.yin
 *
 */
public class CodingUtils {
	public static void assertParameterNotNull(Object param, String paramName) {
		if (param == null) {
			throw new NullPointerException(paramName + " is null");
		}
	}
	public static void assertStringNotNullOrEmpty(String param, String paramName) {
		assertParameterNotNull(param, paramName);
		if (param.isEmpty()) {
			throw new IllegalArgumentException(paramName + " is empty");
		}
	}
}
